﻿using AutoMapper;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options;
using WMS.FC.Domain.DomainObject.System;
using WMS.FC.Domain.Repository;

namespace WMS.FC.Application.System
{
    public class ServiceBase
    {
        protected readonly ILogger<ServiceBase> logger;
        protected readonly IOptions<WmsSettings> options;
        protected readonly IMapper mapper;
        protected readonly IUnitOfWork unitOfWork;

        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="logger"></param>
        /// <param name="options"></param>
        /// <param name="mapper"></param>
        /// <param name="unitOfWork"></param>
        public ServiceBase(ILogger<ServiceBase> logger, IOptions<WmsSettings> options, IMapper mapper, IUnitOfWork unitOfWork)
        {
            this.logger = logger;
            this.options = options;
            this.mapper = mapper;
            this.unitOfWork = unitOfWork;
        }
    }
}
